---
# tasks file for olderpc

- name: find desktop
  ansible.builtin.find:
    paths: /home/OKB3
    recurse: yes
    depth: 3
    file_type: directory
    patterns:
    - "Desktop"
    - "Рабочий стол"
    - "Desktop1"
  register: desktops

#- name: debugger
#  ansible.builtin.debug:
#    var: desktops


- name: place link
  ansible.builtin.copy:
    src: svodka.desktop
    dest: "{{ item.path }}/svodka.desktop"
  with_items: "{{ desktops.files }}"

- name: place vis
  ansible.builtin.copy:
    src: vis.desktop
    dest: "{{ item.path }}/vis.desktop"
  with_items: "{{ desktops.files }}"
